home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ IIS Settings General.xpl < prev    next >
Text File  |  1999-09-13  |  2KB  |  75 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Internet\Internet Information Server\Other"
  5. "NAME"="General Options"
  6. "VERSION"="1.15"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Cache Security Information"
  9. "TEXT 2"="Log successful requests"
  10. "TEXT 3"="Log requests causing errors"
  11. "DESCRIPTION 1"="If "Cache Security Information" is activated, IIS will keep the security desriptors so checking permisson can be much faster than normal."
  12. "DESCRIPTION 2"="Activate "Log successful requests" if IIS should log successful requests (default: Deactivated)."
  13. "DESCRIPTION 3"="Activate "Log requests causing errors" if IIS should log requests that were aborted (default: Enabled)."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  17.  
  18.  
  19. 'Declaration of some constants
  20. sPC="HKLM\System\CurrentControlSet\Services\W3SVC\Enum\"
  21. sP="HKLM\System\CurrentControlSet\Services\W3SVC\Parameters\"
  22. sP2="HKLM\System\CurrentControlSet\Services\InetInfo\Parameters\"
  23. vCS="CacheSecurityDescriptor" 'DW
  24. vLS="LogSuccessfulRequests" 'DW
  25. vLE="LogErrorRequests" 'DW
  26.  
  27. 'Called when the Plugin is started
  28. Sub Plugin_Initialize
  29.  if RegPathExists(sPC) then
  30.   i=RegReadValue(sp2&vcs)
  31.   if i=1 then SetUIElement 1,true
  32.  
  33.   i=RegReadValue(sp&vls)
  34.   if i=1 then SetUIElement 2,true
  35.  
  36.   i=RegReadValue(sp&vle)
  37.   if i=1 then SetUIElement 3,true
  38.  else
  39.   Disable
  40.  end if
  41. End Sub
  42.  
  43. 'Called when the Plugin should validate the Data the user has entered
  44. Sub Plugin_CheckData(ElementIndex)
  45. End Sub
  46.  
  47. 'Called when the Plugin should apply the changes
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.  b=GetUIElement(1)
  50.  if b=true then
  51.   Call RegWriteValue(sp2&vcs,1,2)
  52.  else
  53.   Call RegWriteValue(sp2&vcs,0,2)
  54.  end if
  55.  
  56.  b=GetUIElement(2)
  57.  if b=true then
  58.   Call RegWriteValue(sp&vls,1,2)
  59.  else
  60.   Call RegWriteValue(sp&vls,0,2)
  61.  end if
  62.  
  63.  b=GetUIElement(3)
  64.  if b=true then
  65.   Call RegWriteValue(sp&vle,1,2)
  66.  else
  67.   Call RegWriteValue(sp&vle,0,2)
  68.  end if
  69.  
  70. End Sub
  71.  
  72. 'Called when the Plugin is about to be removed from memory
  73. Sub Plugin_Terminate
  74. End Sub
  75.